import java.util.Scanner;

public class HihoCoder1361 {

	static boolean[] has = new boolean[26];
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String value = in.nextLine();
		byte[] item = value.getBytes();
		for(int i=0;i<item.length;i++){
			if(item[i]==74){
				item[i]=73;
			}
		}
		char[] out = new char[25];
		int index =0;
		for(int i=0;i<item.length;i++){
			if(!has[item[i]-65]){
				has[item[i]-65]=true;
				out[index]=(char)item[i];
				index++;
			}
		}
		for(int i=0;i<has.length;i++){
			if(i==9){
				continue;
			}
			if(!has[i]){
				byte b = (byte) (i+65);	
				out[index]=(char)b;
				index++;
			}
		}
		for(int i=0;i<out.length;i++){
			if(i%5==0 && i!=0){
				System.out.println();
			}
			System.out.print(out[i]);
		}
	}
	

}
